package com.hyl.controller;

import org.junit.Test;

import javax.sound.midi.Soundbank;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2023/4/28 9:54
 **/
public class TestController {

	public void show(){
		try {
			int num1 = 10;
			int num2 = 0;
			int ret = num1 / num2;
			System.out.println("结果afterReturning：" + ret);
		}catch (ArithmeticException e){
			System.out.println("异常afterThrowing");
			System.out.println(e.getMessage());
		}finally {
			System.out.println("结束after");
		}
	}

	@Test
	public void test(){
		System.out.println("调用方法前...before");
		show();
	}
}
